package com.tij.rtti.typeinfo.toys;

/**
 * @ClassName: ch 14-2-2
 * @author:
 * @Description:  testing class Class
 * data:2024/10/6 20:49
 * @since
 **/
public class GenericToyTest {
    public static void main(String[] args) throws IllegalAccessException, InstantiationException {
        Class<FancyToy> ftclass = FancyToy.class;
        FancyToy fancyToy = ftclass.newInstance();
        System.out.println();
        Class<? super FancyToy>  up = ftclass.getSuperclass();

        Object obj = up.newInstance();
    }

}
